#include "GamePlayApplication.h"
#include <SEWindow/SDLWindow/SDLWindow.h>
#include <SERender/Drive/Drive.h>
#include <SEngine/Layers/SceneLayer.h>
#include <SEGamePlay/Layer/GamePlayLayer.h>

namespace SEngine
{
    void GamePlayApplication::Init()
    {
        const float delta = 0.8f;
        auto window = std::make_unique<SDLWindow>("SEngine", (int)(1920 * delta), (int)(1080 * delta), SDLWindowFlags::SE_WINDOW_OPENGL | SDLWindowFlags::SE_WINDOW_RESIZABLE);
        AddLayer("GamePlayLayer", std::make_unique<GamePlayLayer>(*this, m_argc, m_argv));
        AddLayer("SceneLayer", std::make_unique<SceneLayer>(*this));
        SetWindow(std::move(window));
        CurrentDrive().EnableMultiSample(true);
        CoreApplication::Init();
    }   
} // namespace SEngine